package com.xinzhi.service.impl;

import com.xinzhi.mapper.TransferRecordMapper;
import com.xinzhi.pojo.Banktransaction;
import com.xinzhi.service.ITransferRecordService;
import com.xinzhi.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TransferRecordServiceImpl implements ITransferRecordService {

    @Autowired
    private TransferRecordMapper transferRecordMapper;


    @Override
    public boolean isVailOrderNumber(String OrderNumber) {
        return OrderNumber.matches("^\\d{12}$\n");
    }

    @Override
    public boolean isVailPhone(String phone) {
        return phone.matches("^1[3-9]\\d{9}$\n");
    }

    @Override
    public boolean isVailCardNumber(String cardNumber) {
        return cardNumber.matches("^(?:622202|622848|621661|621700|622588)\\d{10,13}$");
    }

    @Override
    public boolean isVailPassword(String password) {
        return password.matches("^\\d{6}$\n");
    }
}
